<?php /* Smarty version 2.6.20, created on 2017-07-05 23:18:37
         compiled from register.htm */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style>
    .input_group_input {
        background: none;
        width: 100%;
        padding: 0.8em 10px 0.8em 0.8em;
        box-sizing: border-box;
        height: 45px;
        font-size: 14px;
        color: #333;
        text-align: left;
    }
    input[type='password'] {
        border: none;
        outline: none;
    }
</style>
<body>
<header>
    <div class="header_top">
        <div class="st_back"><a href="javascript:window.history.back();"></a></div>
        <h1 class="tit">注册</h1>
        <a class="top_user_reg" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/login.php">登录</a>
    </div>
</header>
<div class="mid_content">
    <div class="st_user_box">
  <div class="st_login">
 <form method="post" action="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/register.php" onsubmit="return checkFrm();">
  <div class="login_page clearfix number_password">
    <p><strong>用户名：</strong><input type="text" class="username focus" name="user" id="user" value="" placeholder="请输入用户名" /></p>
    <p><strong>密码：</strong><input type="password"  name="password" id="password" value="" placeholder="请输入密码"/></p>
    <p><strong>密码：</strong><input type="password"  name=repassword id="repassword" placeholder="请再次输入密码" value="" /></p>
    <p>
      <strong>验证码：</strong></strong><input type="text" class="yzm_txt focus" id="yzm" name="yzm"  value="" placeholder="验证码"   />
      <span><img src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/includes/rand_func.php?rand=<?php echo $this->_tpl_vars['now_time']; ?>
" style="cursor:pointer;margin-top: 6px;margin-left: 2px" onClick="this.src=this.src+'?rand='+Math.random()" title="点击我更换图片" alt="点击我更换图片"></span>
    </p>

  </div>
   <p  class="submit_btn"><input name="" type="submit" value="注册"></p>
 </form>
 </div>
 </div>
 </div>
<script>
    function checkFrm()
    {
        var user = $("#user").val();
        var pwd = $("#password").val();
        var repassword = $("#repassword").val();
        var yzm = $("#yzm").val();
        if(user==''){
            alert('用户不能为空');
            return false;
        }
        if(pwd.length < 6){
            alert('密码长度最低为6位');
            return false;
        }
        if(pwd!=repassword){
            alert('两次密码输入不一致');
            return false;
        }
        if(yzm.length<=0){
            alert('请输入验证码');
            return false;
        }
        return true;
    }
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>